/**
 *
 */
package com.angel.email.provider;



/**
 * @author Guille Salazar
 * @since 21/Jul/2009
 *
 */
public enum ProviderType {

	POP3("pop3"){
//		public ProviderTypeConfiguration buildProviderTypeConfiguration(){
//			return null;
//		}
	},
	IMAP("imap"){
//		public ProviderTypeConfiguration buildProviderTypeConfiguration(){
//			return null;
//		}
	};

	//public abstract ProviderTypeConfiguration buildProviderTypeConfiguration();

	private ProviderType(String provider) {
		this.provider = provider;
	}

	private String provider;

	public String getProvider() {
		return this.provider;
	}

	public static ProviderType findProviderType(String providerDescription){
		for(ProviderType pt: values()){
			if(pt.getProvider().equalsIgnoreCase(providerDescription)){
				return pt;
			}
		}
		return null;
	}

}
